﻿@model GosWeb.Models.Db.Gene
@{
    ViewBag.Title = "编辑血统";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend> @ViewBag.Title
            @Html.ActionLink("详细", "Details", new { id = Model.Code }) |
            @Html.ActionLink("列表", "Index") |
            @Html.ActionLink("新建", "Create") </legend>
        @Html.HiddenFor(model => model.Code)
        <table>
            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Code)
                </td>
                <td class="editor-field">
                    @Html.DisplayFor(model => model.Code)
                </td>
            </tr>
            <td class="editor-label">
                @Html.LabelFor(model => model.Name)
            </td>
            <td class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </td>
            <tr>
                <td class="editor-label">
                    @Html.LabelFor(model => model.Description)
                </td>
                <td class="editor-field">
                    @Html.TextAreaFor(model => model.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
